Power distribution unit and alarm method applied in the same

ABSTRACT

An apparatus including a base, a socket, a first switch, a second switch, and an AND gate is provided. The socket is disposed at the base and the socket is configured to receive a plug. The socket has a power end in communication with the first switch and a ground end in communication with the second switch. When a plug is disposed at the socket, the AND gate outputs an alarm signal responsive to the first switch being short when the plug is electrically connected to the power end of the socket and the second switch being open when the plug is electrically disconnected from the ground end of the socket.

CROSS-REFERENCE TO RELATED APPLICATION(S)

This application is a continuation patent application of U.S. patent application No. 14/929,513, filed Nov. 2, 2015, titled “Power Distribution Unit and Alarm Method Applied in the Same”, now pending, which is hereby incorporated by reference, and which is a continuation patent application of U.S. patent application Ser. No. 14/746,983, filed Jun. 23, 2015, titled “Power Distribution Unit And Alarm Method Applied In The Same”, now U.S. Pat. No. 9,625,511, which is hereby incorporated by reference, and which claims the benefit of priority from Taiwan Patent Application 103122054 filed on Jun. 24, 2014, which is incorporated herein by reference and assigned to the assignee herein.

BACKGROUND

The present embodiments relates to a power distribution unit and in particular, to an alarm method applied in the power distribution unit.

DESCRIPTION OF THE PRIOR ART

For the existing power distribution unit (also called PDU), please refer to IBM's power distribution unit products, such as PDU+.

In general, a power distribution unit is provided with an external cable to be electrically connected to a fixed power, e.g. a voltage source of 110 V or 220 V. In addition, the power distribution unit is usually provided with a plurality of sockets such that plugs of various electronic devices can be inserted in the sockets and the required electricity power can be provided to each of the electronic devices.

However, in some cases, the plug of an electronic device is not provided with a ground end, or the ground end is often deliberately removed by a user. Therefore, if a plug of an electronic device which does not have a ground end is used to be inserted into a socket of a power distribution unit, when encountering a high voltage injection due to lightning, voltage surges or unintentional voltage contact, the electronic device cannot be protected by means of the overvoltage protection such that sparks can easily occur as the plug is inserted in or removed from the socket. Furthermore, in case of voltage instability, the electronic device is likely to be damaged due to voltage surges, and results in an electric shock to a user due to electrical leakage.

SUMMARY

The present embodiments include a power distribution unit, a method, and an associated computer program product for applying an alarm to the power distribution unit.

In one aspect, a system for applying an alarm signal responsive to electrical communication between a plug and a socket is provided. The socket is disposed at a base and configured to receive the plug. The socket has a power end and a ground end. A first switch is positioned proximal to the power end and a second switch is positioned proximal to the ground end. The first switch has a first end and a second end. Similarly, the second switch has a third end and a fourth end. The first end of the first switch is electrically connected to a second input end of an inverter. A first output end of the inverter is electrically connected to a first input end of an AND gate. The third end of the second switch is electrically connected to a second input end of the AND gate. The first end of the first switch, the third input end of the inverter, the third end of the second switch, and the second input end of the AND gate are electrically connected to a preset power. The second end of the first switch and fourth end of the second switch are grounded. A second output end of the AND gate is configured to output an alarm signal responsive to the first switch being short when the plug is electrically connected to the power end and the second switch being open when the plug is electrically disconnected from the ground end.

In another aspect, a computer program product comprising a computer readable storage device having program code embodied therewith for employing an alarm signal responsive to electrical communication between a plug and a socket is provided. More specifically, program code configures the socket to receive the plug and the socket is disposed at a base. The socket has a power end and a ground end. Program code configures a first switch positioned proximal to the power end and program code configures a second switch positioned proximal to the ground end. More specifically, the first switch has a first end and a second end. Similarly, the second switch has a third end and a fourth end. The first end of the first switch is electrically connected to a second input end of an inverter. A first output end of the inverter is electrically connected to a first input end of an AND gate. The third end of the second switch is electrically connected to a second input end of the AND gate. The first end of the first switch, the third input end of the inverter, the third end of the second switch, and the second input end of the AND gate are electrically connected to a preset power. The second end of the first switch and fourth end of the second switch are grounded. Program code outputs an alarm signal from a second output end of the AND gate responsive to the first switch being short when the plug is electrically connected to the power end and the second switch being open when the plug is electrically disconnected from the ground end.

In a further aspect, a method is provided for applying an alarm signal responsive to electrical communication between a plug and a socket. More specifically, the socket is configured to receive the plug and the socket is disposed at a base. The socket has a power end and a ground end. A first switch is configured and positioned proximal to the power end. Similarly, a second switch is configured and positioned proximal to the ground end. More specifically, the first switch has a first end and a second end. Similarly, the second switch has a third end and a fourth end. The first end of the first switch is electrically connected to a second input end of an inverter. A first output end of the inverter is electrically connected to a first input end of an AND gate. The third end of the second switch is electrically connected to a second input end of the AND gate. The first end of the first switch, the third input end of the inverter, the third end of the second switch, and the second input end of the AND gate are electrically connected to a preset power. The second end of the first switch and fourth end of the second switch are grounded. An alarm signal is output from a second output end of the AND gate responsive to the first switch being short when the plug is electrically connected to the power end and the second switch being open when the plug is electrically disconnected from the ground end.

These and other features and advantages will become apparent from the following detailed description of the presently preferred embodiment(s), taken in conjunction with the accompanying drawings.

BRIEF DESCRIPTION OF THE DRAWINGS

In order that the advantages of the embodiments will be readily understood, a more particular description of the embodiments briefly described above will be rendered by reference to specific embodiments that are illustrated in the appended drawings. Understanding that these drawings depict only typical embodiments and are not therefore to be considered to be limiting of its scope, the embodiments will be described and explained with additional specificity and detail through the use of the accompanying drawings.

FIG. 1 depicts a schematic diagram of a power distribution unit according to an embodiment.

FIG. 2 depicts a schematic diagram showing the sockets of the power distribution unit where the plugs are inserted according to an embodiment.

FIG. 3 depicts a flowchart illustrating the alarm method applied in the power distribution unit according to an embodiment.

DETAILED DESCRIPTION

Hereinafter, the present embodiments will be described in more detail with reference to the accompanying drawings. Nevertheless, it should be understood that the present embodiments could be modified by those skilled in the art in accordance with the following description to achieve the excellent results of the present embodiments. Therefore, the following description shall be considered as a pervasive and explanatory disclosure related to the present embodiments for those skilled in the art, not intended to limit the claims of the present embodiments.

Citation of “a specific embodiment” or a similar expression in the specification means that specific features, structures, or characteristics described in the specific embodiment are included in at least one specific embodiment of the present embodiments. Hence, the wording “in a specific embodiment” or a similar expression in this specification does not necessarily refer to the same specific embodiment.

Reference throughout this specification to features, advantages, or similar language does not imply that all of the features and advantages that may be realized with the present embodiments should be or are in any single embodiment of the embodiments. Rather, language referring to the features and advantages is understood to mean that a specific feature, advantage, or characteristic described in connection with an embodiment is included in at least one embodiment of the present embodiments. Thus, discussion of the features and advantages, and similar language, throughout this specification may, but do not necessarily, refer to the same embodiment.

Furthermore, the described features, advantages, and characteristics of the embodiments may be combined in any suitable manner in one or more embodiments. One skilled in the relevant art will recognize that the embodiments may be practiced without one or more of the specific features or advantages of a particular embodiment. In other instances, additional features and advantages may be recognized in certain embodiments that may not be present in all embodiments.

The following description and the appended claims further illustrate the features and advantages of the present embodiments.

[Structure of the Power Distribution Unit]

Referring to FIG. 1, a schematic diagram of a power distribution unit (200) is provided according to an embodiment. The power distribution unit (200) includes a base (210), at least a socket (220) (a plurality of sockets (220) are shown in FIG. 1), at least one detecting unit (230) (a plurality of detecting units (230) are shown in FIG. 1), an OR gate (240), a management unit (250) and an external cable (not shown). Each of the sockets (220) is disposed at the base (210) and includes at least one power end (222) (two power ends (222) are usually included but only one is schematically illustrated in FIG. 1) and a ground end (224).

In an embodiment, the power end (222) of each of the sockets (220) may include a power jack (222 a) and a power elastic piece (222 b) located near the power jack (222 a). The ground end (224) of each of the sockets (220) may include a ground jack (224 a) and a ground elastic piece (224 b) located near the ground jack (224 a). In addition, a plug (20) of an external electronic device (e.g. a server such as IBM's System X, Blade Center or eServer, but not shown) is adapted to be disposed at one of the sockets (220). The plug (20) of the external electronic device may include at least one power end (22) (two power ends (22) are usually included but only one is schematically illustrated in FIG. 1) and a ground end (24). In an embodiment, the power end (22) and the ground end (24) of the plug (20) may be pins, respectively.

The detecting units (230) are disposed at the base (210) and respectively correspond to the sockets (220). In the present embodiment, each of the detecting units (230) includes an inverter (232), an AND gate (234), a first switch (236) and a second switch (238). In each of the detecting units (230), the inverter (232) includes an input end (232 a) and an output end (232 b). The AND gate (234) includes two input ends (234 a) and an output end (234 b). The first switch (236) includes a first end (236 a), a second end (236 b) and an insulating elastomer (236 c), and the second switch (238) includes a first end (238 a), a second end (238 b) and an insulating elastomer (238 c). When the power distribution unit (200) is in the initial state, that is, all sockets (220) are not inserted with any plugs, both the first switch (236) and the second switch (238) are open.

In each of the detecting units (230), one of the input ends (234 a) of the AND gate (234) is electrically connected to the output end (232 b) of the inverter (232), and the first end (236 a) of the first switch (236) is electrically connected to the input end (232 a) of the inverter (232). In each of the detecting units (230), the first end (236 a) of the first switch (236) and the input end (232 a) of the inverter (232) are together electrically connected to a preset power V1, and the second end (236 b) of the first switch (236) is grounded. The first switch (236) of each of the detecting units (230) corresponds to the power end (222) of one of the sockets (220).

In each of the detecting units (230), the first end (238 a) of the second switch (238) is electrically connected to another of the input ends (234 a) of the AND gate (234). In each of the detecting units (230), the first end (238 a) of the second switch (238) and the other input end (234 a) of the AND gate (234) are together electrically connected to a preset power V1, and the second end (238 b) of the second switch (238) is grounded. The second switch (238) of each of the detecting units (230) corresponds to the ground end (224) of one of the sockets (220).

The output end (234 b) of the AND gate (234) of each of the detecting units (230) is electrically connected to one of a plurality of input ends (242) of the OR gate (240). An output end (244) of the OR gate (240) is electrically connected to the management unit (250). The management unit (250) is used for determining whether to perform a predetermined operation according to a signal transmitted from the output end (244) of the OR gate (240). The predetermined operation is, for example, to generate a visual alarm message (e.g. to turn on an alarm light) or an auditory alarm sound (e.g. to issue an alarm noise). The details will be described hereinafter.

In other embodiments, the number of the sockets (220) and that of the detecting units (230) may vary. When the number of the socket (220) and that of the detecting unit (230) is one, respectively, the OR gate (240) can be omitted and the output end (234 b) of the AND gate (234) of the detecting unit (230) can be electrically connected to the management unit (250) directly.

[Operation of the Power Distribution Unit]

The operation of the power distribution unit (200) will be described hereinafter. Please refer to FIG. 1. When the power distribution unit (200) is in the initial state (i.e. no plug is inserted into any of the sockets (220)), the output ends (234 b) of the AND gates (234) of all the detecting units (230) respectively output first signals (e.g. a low voltage signal), and the management unit (250) does not generate a visual alarm message (or an auditory alarm sound) according to a signal transmitted from the output end (244) of the OR gate (240). In one embodiment, the aspect of not generating an alarm message is also referred to as deterring the generation of the alarm message.

Referring to FIG. 2, which is a schematic diagram showing the sockets of the power distribution unit where the plugs are inserted according to an embodiment. As shown in FIG. 2, the plugs (20) and (20′) are respectively inserted into the sockets (220) of the power distribution unit (200). The power end (22) and the ground end (24) of the plug (20) are respectively electrically connected to the power end (222) and the ground end (224) of the corresponding socket (220) such that both the first switch (236) and second switch (238) of the corresponding detecting unit (230) are short. Accordingly, the output end (234 b) of the AND gate (234) of the corresponding detecting unit (230) outputs a first signal (e.g. a low voltage signal).

It should be noted here that, in the present embodiment, when the power end (220 and the ground end (24) of the plug (20) are respectively inserted into the power jack (222 a) and ground jack (224 a) of the corresponding socket (220), the power end (22) and the ground end (24) of the plug (20) respectively press and are electrically connected to the corresponding power elastic piece (222 b) and the corresponding ground elastic piece (224 b). At this time, the corresponding power elastic piece (222 b) and the corresponding ground elastic piece (224 b) are electrically connected to a power line and a ground line of an external cable (not shown) respectively, and press the insulating elastomer (236 c) of the corresponding first switch (236) and the insulating elastomer (238 c) of the corresponding second switch (238), respectively such that the two ends (236 a) and (236 b) of the corresponding first switch (236) (see FIG. 1) are electrically conductive and the two ends (238 a) and (238 b) of the corresponding second switch (238) (see FIG. 1) are electrically conductive.

Referring to FIG. 2 again. The power end (22′) of the plug (20′) is electrically connected to the power end (222) of the corresponding socket (220) such that the corresponding first switch (236) is short. However, the plug (20′) is not electrically connected to the ground end (224) of the corresponding socket (220) such that the corresponding second switch (238) is still open. Accordingly, the output end (234 b) of the AND gate (234) of the corresponding detecting unit (230) outputs a second signal (that is, an alarm signal, e.g. a high voltage signal).

Based on the above mentioned, since one of the detecting units (230) corresponding to the sockets (220) outputs the alarm signal to the OR gate (240) and the output end (244) of the OR gate (240) then transmits the alarm signal to the management unit (250), the management unit (250) performs a predetermined operation in response to the alarm signal. The predetermined operation is, for example, to generate a visual alarm message (e.g. to turn on an alarm light) or an auditory alarm sound (e.g. to issue an alarm noise) to alert the user.

Based on the aforementioned, in the case that a plug is inserted into the power distribution unit (200) in the present embodiment, as long as the power end (222) of the corresponding socket (220) is electrically connected to the plug but the ground end (224) of the corresponding socket (220) is not electrically connected to the plug, the management unit (250) of the power distribution unit (200) generates a visual alarm message (e.g. turns on an alarm light) or an auditory alarm sound (e.g. issues an alarm noise) to alert the user. In addition, in the case that in the present embodiment no plug is inserted into the power distribution unit (200) or the inserted plug is electrically connected to both the power end (222) and the ground end (224) of the corresponding socket (220), the management unit (250) does not generate the aforementioned alarm message or alarm sound.

[An Alarm Method Applied in the Power Distribution Unit]

An alarm method applied in the power distribution unit (200) is described hereinafter. FIG. 3 is a flowchart (300) illustrating the alarm method applied in the power distribution unit according to an embodiment. Please refer to FIG. 1 to FIG. 3. The alarm method applied in the power distribution unit according to an embodiment of the present embodiments includes the following steps. First, Step (302) is performed. The electrical connection between a plug and the power end (222) of the corresponding socket (220) of the power distribution unit (200) is determined. Then, if the plug is electrically connected to the power end (222) of the corresponding socket (220), Step (304) is performed, i.e. the electrical connection between the plug and the ground end (224) of the corresponding socket (220) is determined. Next, if the plug is not electrically connected to the ground end (224) of the corresponding socket (220), Step (306) is performed, i.e. the corresponding detecting unit (230) generates an alarm signal, followed by Step (308) wherein the management unit (250) performs a predetermined operation in response to the alarm signal. The predetermined operation is, for example, to generate a visual alarm signal (e.g. to turn on an alarm light) or an auditory alarm sound (e.g. to issue an alarm noise) to alert the user. If at step (304), it is determined that the plug is electrically connected to a ground end of the socket, the detecting unit does not generate any alarming signal(s) (310).

In the present embodiment, if the plug is not electrically connected to the power end (222) of any socket (220) (e.g. the power distribution unit 200 is in the initial state as shown in FIG. 1), all the detecting units (230) do not generate any alarm signals. If the plug is electrically connected to the ground end (224) of the corresponding socket (220), the corresponding detecting unit (230) does not generate an alarm signal.

The present embodiment(s) has one of the following advantages or another advantage. In the case that a plug is inserted into the power distribution unit in an embodiment of the present embodiments, as long as the power end of the corresponding socket is electrically connected to the plug but the ground end of the corresponding socket is not electrically connected to the plug, the corresponding detecting unit outputs an alarm signal. In response to the alarm signal, the management unit of the power distribution unit generates a visual alarm message or an auditory alarm sound to alert the user.

In addition, in the case that in an embodiment no plug is inserted into the power distribution unit or the inserted plug is electrically connected to both the power end and the ground end of the corresponding socket, all the detecting units do not output any alarm signals. The management unit does not generate any alarm message or alarm sound.

As will be appreciated by one skilled in the art, the present embodiments may be embodied as a computer system, a method or a computer program product. Accordingly, the present embodiments may take the form of an entirely hardware embodiment, an entirely software embodiment (including firmware, resident software, micro-code, etc.) or an embodiment combining software and hardware aspects that may all generally be referred to herein as a “circuit,” “module” or “system.” Furthermore, the present embodiments may take the form of a computer program product embodied in any tangible medium of expression having computer-usable program code embodied in the medium.

Any combination of one or more computer usable or computer readable medium(s) may be utilized. The computer-usable or computer-readable medium may be, for example but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, device, or propagation medium. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a transmission media such as those supporting the Internet or an intranet, or a magnetic storage device. Note that the computer-usable or computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via, for instance, optical scanning of the paper or other medium, then compiled, interpreted, or otherwise processed in a suitable manner, if necessary, and then stored in a computer memory. In the context of this document, a computer-usable or computer-readable medium may be any medium that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. The computer-usable medium may include a propagated data signal with the computer-usable program code embodied therewith, either in baseband or as part of a carrier wave. The computer usable program code may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc.

Computer program code for carrying out operations of the present embodiments may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C++ or the like and conventional procedural programming languages, such as the “C” programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server.

The present embodiments are described below with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks.

These computer program instructions may also be stored in a computer-readable medium that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable medium produce an article of manufacture including instruction means which implement the function/act specified in the flowchart and/or block diagram block or blocks.

The computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide processes for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks.

The foregoing detailed description of the embodiments is used to further clearly describe the features and spirit of the present embodiments. The foregoing description for each embodiment is not intended to limit the scope of the present embodiments. All kinds of modifications made to the foregoing embodiments and equivalent arrangements should fall within the protected scope of the present embodiments. Hence, the scope of the present embodiments should be explained most widely according to the claims described thereafter in connection with the detailed description, and should cover all the possibly equivalent variations and equivalent arrangements. 

What is claimed is:
 1. An apparatus comprising: a first socket configured to receive a plug, the first socket having a first power end and a first ground end, and the first socket disposed at a base; a first AND gate having a first input end and a second input end, and the first input end is electrically connected to a first output end of a first inverter; a first switch positioned proximal to the first power end, the first switch having a first end and a second end, the first end is electrically connected to a third input end of the first inverter, the first end and the third input end are together electrically connected to a preset power, and the second end is grounded; a second switch positioned proximal to the first ground end, the second switch having a third end and a fourth end, the third end is electrically connected to the second input end, the third end and the second input end are together electrically connected to the preset power, and the fourth end is grounded; and a second output end of the first AND gate to output an alarm signal responsive to the first switch being short when the plug is electrically connected to the first power end and the second switch being open when the plug is electrically disconnected from the first ground end.
 2. The apparatus of claim 1, further comprising: a second socket configured to receive the plug, the second socket disposed at the base and the second socket having a second power end and a second ground end; a second AND gate having a fourth input end and a fifth input end, and the fifth input end is electrically connected to a third output end of a second inverter; a third switch positioned proximal to the second power end, the third switch having a fifth end and a sixth end, the fifth end is electrically connected to a sixth input end of the second inverter, the fifth end and the sixth input end are together electrically connected to the preset power, and the sixth end is grounded; a fourth switch positioned proximal to the second ground end, the fourth switch having a seventh end and an eighth end, the seventh end is electrically connected to the fifth input end, the seventh end and the fifth input end are together electrically connected to the preset power, and the eighth end is grounded; and a fourth output end of the second AND gate to output the alarm signal responsive to the third switch being short when the plug is electrically connected to the second power end of the second socket and the second switch being open when the plug is electrically disconnected from the ground end of the socket.
 3. The apparatus of claim 2, further comprising: an OR gate having a seventh input end, an eighth input end, and a fifth output end, the second output end is electrically connected to the seventh input end and the fourth output end is electrically connected to the eighth input end, and the fifth output end to output the alarm signal in response to one of the seventh and eighth input ends receiving the alarm signal.
 4. The apparatus of claim 3, further comprising: a management unit having a ninth input, the ninth input electrically connected to the fifth output, the management unit to perform a predetermined operation in response to the received alarm signal.
 5. The apparatus of claim 4, wherein the predetermined operation performed by the management unit is to generate a communication selected from the group consisting of: a visual alarm message and an auditory alarm sound.
 6. A computer program product for employing an alarm signal responsive to electrical communication between a socket and a plug, the computer program product comprising a computer readable storage device having program code embodied therewith, the program code executable by a processing unit to: configure a first socket to receive the plug having a first power end and a first ground end, the first socket disposed at a base; configure a first AND gate having a first input end and a second input end, and the first input end is electrically connected to a first output end of a first inverter; configure a first switch positioned proximal to the first power end, the first switch having a first end and a second end, the first end is electrically connected to a third input end of the first inverter, the first end and the third input end are together electrically connected to a preset power, and the second end is grounded; and configure a second switch positioned proximal to the first ground end, the second switch having a third end and a fourth end, the third end is electrically connected to the second input end, the third end and the second input end are together electrically connected to the preset power, and the fourth end is grounded; and output an alarm signal from a second output end of the first AND gate responsive to the first switch being short when the plug is electrically connected to the first power end and the second switch being open when the plug is electrically disconnected from the first ground end.
 7. The computer program product claim 6, further comprising program code to: configure a second socket having a second power end and a second ground end, the second socket disposed at the base; configure a second AND gate having a fourth input end and a fifth input end, and the fifth input end is electrically connected to a third output end of a second inverter; configure a third switch positioned proximal to the second power end, the third switch having a fifth end and a sixth end, the fifth end is electrically connected to a sixth input end of the second inverter, the fifth end and the sixth input end are together electrically connected to the preset power, and the sixth end is grounded; and configure a fourth switch positioned proximal to the second ground end, the fourth switch having a seventh end and an eighth end, the seventh end is electrically connected to the fifth input end, the seventh end and the fifth input end are together electrically connected to the preset power, and the eighth end is grounded; output the alarm signal from a fourth output end of the second AND gate responsive to the third switch being short when the plug is electrically connected to the second power end of the second socket and the second switch being open when the plug is electrically disconnected from the ground end of the socket.
 8. The computer program product of claim 7, further comprising program code to: configure an OR gate having a seventh input end, an eighth input end, and a fifth output end, the second output end is electrically connected to the seventh input end and the fourth output end is electrically connected to the eighth input end; and output the alarm signal from the fifth output end in response to one of the seventh and eighth input ends receiving the alarm signal.
 9. The computer program product of claim 8, further comprising program code to: perform a predetermined operation in response to the received alarm signal from the fifth output end.
 10. The computer program product of claim 9, wherein the predetermined operation performed is to generate a communication selected from the group consisting of: a visual alarm message and an auditory alarm sound.
 11. A method comprising: configuring a first socket to receive a plug having a first power end and a first ground end, the first socket disposed at a base; configuring a first AND gate having a first input end and a second input end, and the first input end is electrically connected to a first output end of a first inverter; configuring a first switch positioned proximal to the first power end, the first switch having a first end and a second end, the first end is electrically connected to a third input end of the first inverter, the first end and the third input end are together electrically connected to a preset power, and the second end is grounded; and configuring a second switch positioned proximal to the first ground end, the second switch having a third end and a fourth end, the third end is electrically connected to the second input end, the third end and the second input end are together electrically connected to the preset power, and the fourth end is grounded; and outputting an alarm signal from a second output end of the first AND gate responsive to the first switch being short when the plug is electrically connected to the first power end and the second switch being open when the plug is electrically disconnected from the first ground end.
 12. The method of claim 11, further comprising: configuring a second socket having a second power end and a second ground end, the second socket disposed at the base; configuring a second AND gate having a fourth input end and a fifth input end, and the fifth input end is electrically connected to a third output end of a second inverter; configuring a third switch positioned proximal to the second power end, the third switch having a fifth end and a sixth end, the fifth end is electrically connected to a sixth input end of the second inverter, the fifth end and the sixth input end are together electrically connected to the preset power, and the sixth end is grounded; and configuring a fourth switch positioned proximal to the second ground end, the fourth switch having a seventh end and an eighth end, the seventh end is electrically connected to the fifth input end, the seventh end and the fifth input end are together electrically connected to the preset power, and the eighth end is grounded; outputting the alarm signal from a fourth output end of the second AND gate responsive to the third switch being short when the plug is electrically connected to the second power end of the second socket and the second switch being open when the plug is electrically disconnected from the ground end of the socket.
 13. The method of claim 12, further comprising: configuring an OR gate having a seventh input end, an eighth input end, and a fifth output end, the second output end is electrically connected to the seventh input end and the fourth output end is electrically connected to the eighth input end; and outputting the alarm signal from the fifth output end in response to one of the seventh and eighth input ends receiving the alarm signal.
 14. The method of claim 13, further comprising: performing a predetermined operation in response to the received alarm signal from the fifth output end.
 15. The method of claim 14, wherein the predetermined operation performed is to generate a communication selected from the group consisting of: a visual alarm message and an auditory alarm sound. 